package com.huluobo.a2307monthdemo2.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.huluobo.a2307monthdemo2.R
import com.huluobo.lib_base.bean.CartBean

/**
 *  Created by LC on 2025/10/11.
 */
class OrderAdapter : BaseQuickAdapter<CartBean, BaseViewHolder>(R.layout.item_order) {
    override fun convert(holder: BaseViewHolder, item: CartBean) {
        holder.setText(R.id.item_order_desc, item.goods_desc)
        holder.setText(R.id.item_order_count, "x " + item.count)
        holder.setText(R.id.item_order_price, (item.goods_default_price * item.count).toString() + "元")
    }
}